import {Component, reactive, h, ref} from 'vue'
import {chat} from '@/api/ai'
const useAi = () => {
    const AiData = reactive({
        chatDate: {},
    })

    const loadChat = () => {
        let params = {
            message: '讲个笑话',
        }
        chat(params).then((res) => {
            AiData.chatDate = res.data;
        })
    }
    return {
        AiData,
        loadChat
    }
}
export {
    useAi,
}